package edu.hubu.supermarketmanagementsystem.mapper;

import edu.hubu.supermarketmanagementsystem.entity.Shelves;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface ShelvesMapper {

    // 添加货架
    int addShelves(Shelves shelves);

    // 更新货架信息
    int updateShelves(Shelves shelves);

    // 删除货架
    int deleteShelves(int shelfId);

    // 根据ID查询货架
    Shelves findShelvesById(int shelfId);

    // 查询所有货架
    List<Shelves> findAllShelves();

    // 根据区域ID查询货架
    List<Shelves> findShelvesByAreaId(int areaId);

    // 根据管理员ID查询货架
    List<Shelves> findShelvesByAdminId(int adminId);
}
